package com.ruoyi.business.domain.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.annotation.Excel.Type;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;
import java.sql.Time;
import java.util.Date;

/**
 * 火车车站对象 train_station
 * 
 * @author ruoyi
 * @date 2025-03-06
 */

@Data
public class TrainStationVo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long id;

    /** 车次编号 */
    @Excel(name = "车次编号")
    private String trainCode;

    /** 站序 */
    @Excel(name = "站序")
    private Long index;

    /** 站名 */
    @Excel(name = "站名")
    private String name;

    /** 站名拼音 */
    @Excel(name = "站名拼音")
    private String namePinyin;

    /** 进站时间 */
    @JsonFormat(pattern = "HH:mm:ss")
    @Excel(name = "进站时间", width = 30)
    private String inTime;

    /** 出站时间 */
    @JsonFormat(pattern = "HH:mm:ss")
    @Excel(name = "出站时间", width = 30)
    private String outTime;

    /** 停站时长 */
    @JsonFormat(pattern = "HH:mm:ss")
    @Excel(name = "停站时长", width = 30)
    private String stopTime;

    /** 里程（公里）|从上一站到本站的距离 */
    @Excel(name = "里程")
    private String km;

    /**
     * Excel行号
     */
    @Excel(name = "Excel行号", type = Type.EXPORT)
    private Integer rowNum;

    /**
     * 错误信息
     */
    @Excel(name = "错误原因", type = Type.EXPORT)
    private String errorMsg;

    /** 首字母 */
    @Excel(name = "首字母")
    private String namePy;

    public Integer getRowNum() {
        return rowNum;
    }

    public void setRowNum(Integer rowNum) {
        this.rowNum = rowNum;
    }

    public String getErrorMsg() {
        return errorMsg;
    }

    public void setErrorMsg(String errorMsg) {
        this.errorMsg = errorMsg;
    }

    public String getNamePy() {
        return namePy;
    }

    public void setNamePy(String namePy) {
        this.namePy = namePy;
    }
}
